<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
      layout:decorator="user/user_layout"
      th:with="flag=''">

<div layout:fragment="content">
    <div title="平台登录" class="main-login">
        <div class="wrapper">
            <div class="login-panel">
                <h1>登录</h1>
                <form th:action="${routes.path('MAIN_USER_LOGIN')}" method="post" class="mb20">
                    <input type="hidden" name="backUrl" th:value="${#httpServletRequest.getParameter('backUrl')}"/>
                    <div th:if="${not #maps.isEmpty(remind)}" class="error-tip">
                        <i class="fa fa-times"></i>
                        <span th:text="${remind.desc}"/>
                    </div>
                    <div class="input-row">
                        <i class="fa fa-user"></i>
                        <input type="text" placeholder="邮箱／手机号码" name="username" value=""/>
                    </div>

                    <div class="input-row">
                        <i class="fa fa-lock"></i>
                        <input type="password" name="password" placeholder="密码"/>
                    </div>

                    <div class="checkbox-row">
                        <!--<g:checkBox name="rememberMe" value="${rememberMe}"/>-->
                        <!--<span>记住密码</span>-->
                    </div>

                    <input class="btn-login btn-rockcent" type="submit" value="登录"/>
                </form>
                <ul>
                    <li>
                        <a th:href="${routes.path('MAIN_USER_REGISTER')}">免费注册</a>
                    </li>
                    <li>
                        <a th:href="${routes.path('MAIN_USER_FORGOT_PASSWORD')}" class="forget">忘记密码？</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>

</div>
</html>